<template>
	<view>
	</view>
</template>

<script>
	import common from '@/common/common.js';
	export default {
		data() {
			return {
				src: '',
				dataList: '',
				analysis: ''
			}
		},
		onLoad(res) {
			this.src = common.pageUrl;
			this.dataList = common.urlList;
			this.analysis = common.analysis;
		},
		onReady() {
			const currentWebview = this.$mp.page.$getAppWebview();
			var bar = plus.webview.open(this.src,'10086', {top:'0px',bottom:'0px'});
			if (this.analysis === this.dataList[0].src) {
				bar.setBlockNetworkImage(true)
			}
			// bar.addEventListener("touchstart",function(){
				bar.evalJS('var d = document.getElementsByTagName("script");d[0].setAttribute("src","");');
			// })
			currentWebview.append(bar); 
		},
		methods: {
		}
	}
</script>

<style>
</style>
